package com.dong.bean.beanDefinition;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description
 *
 * @author Administrator 2021/09/02 15:08
 */
@Configuration
public class MyConfiguration {

    @Autowired
    private  DefaultListableBeanFactory beanFactory;

    public  DefaultListableBeanFactory getDefaultListableBeanFactory(){
        return beanFactory;
    }

    @Bean
    public static UserBeanFactoryPostProcessor userBeanFactoryPostProcessor(){
        return new UserBeanFactoryPostProcessor();
    }
}
